Common Expressions (Rules) for Turning Operations

Note, those rules can directly be copied in the fields of the tech pages in ESPRIT if an equal sign "=" is added at the start of the rule. Without the equal sign, you need to right click on the field you are working on and select "Edit Properties..." and paste the rule there.

************************************************************************************************************************************************************

Facing Start Extension (Calculates start extension needed for facing to start above the stock radius):

Document.LatheMachineSetUp.BarDiameter / 2 - ABS(GetFeatureStartPointY(Feature)) + CovertToSysUnit(Tool1("ToolNoseRadius").value, Tool1("ToolUnit").value) + IM(.025, .5)

Above: Stock radius - feature's starting Y value + tool nose radius + .025in or .5mm depending on system unit

************************************************************************************************************************************************************

Facing End Extension (Calculates end extension needed for facing to end exactly the tool radius past centerline):

ABS(GetFeatureEndPointY(Feature))

Above: Absolute value of the features ending Y coordinate

Or, to have NC code easier to read:

ABS(GetFeatureEndPointY(Feature)) - CoverttoSysUnit(Tool1("ToolNoseRadius").value, Tool1("ToolUnit").value) + IM(.025, .5)

************************************************************************************************************************************************************
